/* common.css - 所有页面共享的样式 */

/* 页面背景 */
.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
  background-image: url('https://picsum.photos/id/1043/1920/1080');
}

/* 面包屑导航 */
.breadcrumb {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.breadcrumb__container {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.breadcrumb__link {
  color: var(--color-dark);
  opacity: 0.75;
  display: flex;
  align-items: center;
}

.breadcrumb__link:hover {
  opacity: 1;
}

.breadcrumb__divider {
  color: var(--color-dark);
  opacity: 0.5;
  margin: 0 0.5rem;
}

.breadcrumb__current {
  color: var(--color-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* 页脚 */
.footer {
  background-color: var(--color-dark);
  color: white;
  padding: 2rem 0 3rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer__logo-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-right: 0.5rem;
}

.footer__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer__social-link:hover {
  color: var(--color-accent);
}

.footer__title {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link-item {
  margin-bottom: 0.5rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__link-icon {
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer__contact-icon {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  color: var(--color-accent);
}

.footer__copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 移动端状态栏 */
.mobile-status-bar {
  position: fixed;
  top: 60px; /* 修改：将顶部位置下移，避免与导航栏重叠 */
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  z-index: 50; /* 修改：降低z-index，确保导航栏在上层 */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s ease-in-out;
}

.mobile-status-item {
  text-align: center;
}

.mobile-status-label {
  font-size: 0.65rem;
  color: var(--color-dark);
  opacity: 0.75;
}

.mobile-status-value {
  font-weight: 700;
  font-size: 0.875rem;
}

/* 用户菜单样式 */
.user-menu {
  position: relative;
}

.user-menu__button {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.user-menu__button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.user-menu__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.user-menu__name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.user-menu__icon {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.user-menu:hover .user-menu__icon {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 12rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
}

/* 通知样式 */
.notification {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--color-dark);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  width: auto;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
